package edu.lingnan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@TableName("teacher")
@Accessors(chain = true)
public class Teacher {
    @ApiModelProperty(name = "tNum",value = "教师账号",required = true)
    @JsonProperty("tNum")
    @TableField("t_num")
    private String tNum;

    @ApiModelProperty(name = "tPassWord",value = "教师密码",required = true)
    @JsonProperty("tPassWord")
    @TableField("t_passWord")
    private String tPassWord;

    @JsonProperty("tName")
    @TableField("t_name")
    @ApiModelProperty(name = "tName", value = "教师名字")
    private String tName;

    @JsonProperty("tCollege")
    @TableField("t_college")
    @ApiModelProperty(name = "tCollege", value = "教师所属学院")
    private String tCollege;

    @ApiModelProperty(name = "tAuthority", value = "教师权限(默认为辅导员账号)")
    @TableField("t_authority")
    @JsonProperty("tAuthority")
    private Integer tAuthority;

    @ApiModelProperty(name = "tPhone", value = "教师联系方式", required = true)
    @TableField("t_phone")
    @JsonProperty("tPhone")
    private String tPhone;

    @ApiModelProperty(name = "tGrade", value = "教师管理的年级（若是书记注册，则不用传这个参数过来，只有辅导员注册需要传这个参数过来）")
    @TableField("t_grade")
    @JsonProperty("tGrade")
    private String tGrade;

    @ApiModelProperty(name = "tStatus", value = "教师账号状态(0表示待审核，1表示审核通过，-1表示审核不通过)，后端已经默认，前端不需要传过来")
    @TableField("t_status")
    @JsonProperty("tStatus")
    private Integer tStatus;

}
